<template>
     <div id="ddw">
        <yemian :visibal="visibal" @quxiao="quxiao" @queding="queding"></yemian>
        <button @click="show">点击显示</button>
    </div>
</template>

<script>
import yemian from "./yemian.vue"
export default{
    data () {
        return {
      visibal:false      
        }
    },
components: {
    yemian
},
methods: {
    show(){
       this.visibal = true
    },
    quxiao(){
this.visibal = false
alert('已取消')
    },
    queding(){
this.visibal = false
alert('已确定')
    }
}
}
</script>